<template>
    <div class="top">
        <img src="../../assets/logo.png" alt="" />
        <p @click="login">退出</p>
    </div>
</template>

<script>
export default {
    methods: {
        login() {
            this.$router.push({
                path: '/login'
            });
        }
    }
};
</script>

<style lang="scss" scoped>
.top {
    height: 80px;
    background: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    img {
        height: 50px;
    }
    p {
        color: #ffffff;
    }
}
</style>
